home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 37
/
Aminet 37 (2000)(Schatztruhe)[!][Jun 2000].iso
/
Aminet
/
dev
/
misc
/
TCS.lha
/
TCS
/
examples
/
includes
/
macros.i
< prev
next >
Wrap
Text File
|
2000-04-13
|
1KB
|
39 lines
*******************************************************************************
* WTRSTLN 0.0.0
*******************************************************************************
* INFO waits for a rasterline to be completely redrawn
* IN \1 rasterline number
*******************************************************************************
macro WTRSTLN
movem.l d0/a0,-(sp)
lea.l $dff004,a0
.wt0\@ move.l (a0),d0
andi.l #$1ff00,d0
cmpi.l #\1<<8,d0
bne.s .wt0\@
.wt1\@ move.l (a0),d0
andi.l #$1ff00,d0
cmpi.l #((\1<<8)+$100),d0
bne.s .wt1\@
movem.l (sp)+,d0/a0
endm
*******************************************************************************
* WTLMB & WTRMB 0.0.0
*******************************************************************************
* INFO waits for left/right mouse button to be pressed
*******************************************************************************
macro WTLMB
.wt\@ btst.b #6,$bfe001
bne.s .wt\@
endm
macro WTRMB
.wt\@ btst.b #2,$dff016
bne.s .wt\@
endm